<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<link rel="stylesheet" type="text/css" href="<%=path%>/css/button.css"/>
<link rel="stylesheet" type="text/css" href="<%=path%>/css/inputs.css"/>
<link rel="stylesheet" type="text/css" href="<%=path%>/css/app.css"/>

<div id="menubar">
    <img src="<%=path%>/images/left.png" style="margin-top:auto;margin-bottom:auto;width:15px; height:15px">图书搜索
</div>

<form name="reader" action="<%=path%>/reader/ReaderAction_bookSearch.action" method="post">
    <table id="inputs" width="30%"
           style="margin: 0 auto; position: absolute;top: 150px; left: 0; bottom: 0; right: 0;overflow:auto;">
        <tr>
            <th style="text-align:center;color:#0088cc">书&nbsp;名：</th>
            <td>
                <input id="bookname" name="bookname" type="text" placeholder="Bookname" maxlength="20" autofocus>
            </td>
        </tr>

        <tr>
            <th style="text-align:center;color:#0088cc">作&nbsp;者：</th>
            <td>
                <input id="author" name="author" type="text" placeholder="Author"
                       maxlength="20" autofocus>
            </td>
        </tr>

        <tr>
            <th style="text-align:center;color:#0088cc">类&nbsp;别：</th>
            <td>
                <select name="category">
                    <option value="全部">全部</option>
                    <s:iterator value="#session.category_list" var="category">
                        <option value="<s:property value="#category.category"/>"><s:property
                                value="#category.category"/></option>
                    </s:iterator>
                </select>
            </td>
        </tr>

        <tr>
            <th style="text-align:center;color:#0088cc">出版社：</th>
            <td>
                <select name="publishing">
                    <option value="全部">全部</option>
                    <s:iterator value="#session.publishing_list" var="publishing">
                        <option value="<s:property value="#publishing"/>"><s:property value="#publishing"/></option>
                    </s:iterator>
                </select>
            </td>
        </tr>
    </table>

    <table width="10%"
           style="margin: 0 auto; position: absolute;top: 450px; left: 0; bottom: 0; right: 0;overflow:auto;text-align: center">
        <tr>
            <td>
                <input type="submit" class="button" value="搜索" style=""/>
            </td>
        </tr>
    </table>
</form>
</html>
